package com.guaoran.spring.demo.service.impl;

import com.guaoran.spring.demo.bean.Demo;
import com.guaoran.spring.demo.service.DemoService;
import org.springframework.stereotype.Service;

/**
 * @author : 孤傲然
 * @Description :
 * @date :2018/6/2 15:14
 */
@Service
public class DemoService2Impl implements DemoService {
    @Override
    public Demo getDemoById(Long id) {
        return new Demo(id==null?0L:id,"孤傲然",25,"北京朝阳-河南商丘","411425");
    }
}
